import request from '@/utils/request'

export abstract class OnlineRequest {
  /** 查询在线用户列表 */
  static findList(params: TableQueryParams<OnlineType.Entity>): TableResult<OnlineType.Entity> {
    return request.get(`/monitor/online/list`, { params })
  }

  /** 强退用户 */
  static forceLogout(params: { userId: string }): Promise<string> {
    return request.delete(`/monitor/online/forceLogout`, { params })
  }
}
